<?php

declare (strict_types=1);

namespace app\common\model\shop\shop;

use cores\BaseModel;
use app\common\model\Region as RegionModel;

/**
 * 商户模型类
 * Class Shop
 * @package app\common\model\store
 */
class Shop extends BaseModel
{
    // 定义表名
    protected $name = 'shop';

    // 定义主键
    protected $pk = 'shop_id';

    /**
     * 追加字段
     * @var array
     */
    protected $append = [];

    /**
     * 详情记录
     * @param int $addressId
     * @return static|array|null
     */
    public static function detail(int $addressId)
    {
        return self::get($addressId);
    }
}
